@extends('admin.common.zhyframe')

@section('head')
<link href="{{asset('js/plugins/summernote/summernote.css')}}" rel="stylesheet">
<link href="{{asset('js/plugins/summernote/summernote-bs3.css')}}" rel="stylesheet">
@endsection

@section('content')
<div class="container mt-50">
	<div class="row">
		<div class="col-sm-12">
			<form class="form-horizontal" role="form" id="dataInfoForm">
				<div class="form-group">
					<label class="col-sm-2 control-label">区域名称：</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" name="area_name" value="{{$datainfo->area_name}}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">区域排序：</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" name="area_sort" value="{{$datainfo->area_sort}}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">备 注：</label>
					<div class="col-sm-8">
						<textarea class="form-control" rows="3" name="area_remark">{{$datainfo->area_remark}}</textarea>
					</div>
				</div>
				<div class="form-group mt-50">
					<div class="col-sm-4 col-sm-offset-5 ">
						<span class="btn btn-primary" onclick="sendForm($('#dataInfoForm').serializeArray(), '/admin/area/editsave/{{$datainfo->area_id}}')">保&nbsp;&nbsp;存</span>
						<span class="btn btn-white ml-15" onclick="layClose()">取&nbsp;&nbsp;消</span>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
@endsection

@section('footer')
<script src="{{asset('js/public.js')}}"></script>
<script>
function sendForm(formdata, url){
	layAjaxForm(formdata, url, 'post');
}
</script>

@endsection